package com.training.web.repository;

import com.training.bean.Manager;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface WebManagerRepository extends JpaRepository<Manager, Integer> {

    // 自定义查询方法（按用户名查找）
    @Query("SELECT data FROM Manager data WHERE data.phone = :phone")
    Manager findManagerByPhone(String phone);
}
